const globs = import.meta.globEager('./modules/*.ts')
interface IApi{
  user?:any,
  banner?:any,
  cate?:any,
  goods?:any,
  city?:any,
  address?:any,
  cart?:any,
  order?:any,
  pay?:any,
  record?:any,
  favorites?:any,
  scores?:any
}

const modules:IApi={}
for (const path in globs) {
  const mod=globs[path]
  const key=path.match(new RegExp('\./modules/(.*)\.ts'))[1]
  if(key){
    modules[key]=mod
  }
}

export default modules